package com.github.shiqiyue.app.modules.dbms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.shiqiyue.app.api.sapi.controller.dbms.req.DatabaseHistoryPageReq;
import com.github.shiqiyue.app.modules.dbms.entity.DatabaseHistory;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 数据库-历史记录 Mapper 接口
 * </p>
 *
 * @author wenyao.wu
 * @since 2019-08-06
 */
public interface DatabaseHistoryMapper extends BaseMapper<DatabaseHistory> {

    /***
     * 历史记录-分页请求
     * @param databaseHistoryPage
     * @param databaseHistoryPageReq
     * @return
     */
    IPage<DatabaseHistory> page(Page<DatabaseHistory> databaseHistoryPage, @Param("query") DatabaseHistoryPageReq databaseHistoryPageReq);
}
